﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace PickEmHats
{
    public class Event
    {
        #region **Private Vars**
        private int _id;
        private int _home_team;
        private int _visitor_team;
        private DateTime _event_datetime;
        private int _home_spread;
        private int _visitor_spread;
        private int _overall_winner = -1;
        private int _spread_winner = -1;
        #endregion

        #region **Xtor**
        public Event() { }
        public Event(int id, int home_team, int visitor_team, DateTime event_datetime, int home_spread,
            int visitor_spread, int overall_winner, int spread_winner)
        {
            _id = id;
            _home_team = home_team;
            _visitor_team = visitor_team;
            _event_datetime = event_datetime;
            _home_spread = home_spread;
            _visitor_spread = visitor_spread;
            _overall_winner = overall_winner;
            _spread_winner = spread_winner;
        }
        #endregion

        #region **Public Accessors**
        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public int Home_team
        {
            get { return _home_team; }
            set { _home_team = value; }
        }

        public int Visitor_team
        {
            get { return _visitor_team; }
            set { _visitor_team = value; }
        }

        public DateTime Event_datetime
        {
            get { return _event_datetime; }
            set { _event_datetime = value; }
        }

        public int Home_spread
        {
            get { return _home_spread; }
            set { _home_spread = value; }
        }

        public int Visitor_spread
        {
            get { return _visitor_spread; }
            set { _visitor_spread = value; }
        }

        public int Overall_winner
        {
            get { return _overall_winner; }
            set { _overall_winner = value; }
        }

        public int Spread_winner
        {
            get { return _spread_winner; }
            set { _spread_winner = value; }
        }
        #endregion
    }
}